package org.jeecg.modules.es.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * TODO:
 *
 * @author Zhang Hao yu
 * @date 2020/12/2 20:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "good",indexStoreType = "detail",shards = 3,replicas = 1)
public class EsGoods {

    @Id
    Long id;
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String title;
    @Field(type = FieldType.Keyword)
    String brand;
}